package com.yunxi.sys.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.sys.pojo.RoleVO;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * Created by 枫下 on 2018/1/23.
 */
public interface RoleDubboService {
    List listByOrgId(String orgId);

    PageInfo pageByVo(RoleVO roleVO,Integer pageNum,Integer pageSize);

    List listByVo(RoleVO roleVO);

    RoleVO getById(String id);

    void removeByList(List<RoleVO> roleList) throws IllegalAccessException, InvocationTargetException, InstantiationException;

    void saveOrUpdate(RoleVO role,LoginInfo loginInfo);

    RoleVO getByRoleCode(String roleCode);
}
